package com.shop.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

@Data
public class OrderItemDTO {
    private Long id;
    
    @NotBlank(message = "商品编码不能为空")
    private String productCode;
    
    @NotNull(message = "数量不能为空")
    @Positive(message = "数量必须大于0")
    private Integer quantity;
    
    private String productName;
    private Double unitPrice;
    private Double totalPrice;
    
    private Long productId;
} 